package com.xh.bussiness.resource.service;

import com.xh.bussiness.resource.bean.dto.MaterialDto;
import com.xh.bussiness.resource.bean.request.MaterialCourseIndexRequest;
import com.xh.bussiness.resource.model.MaterialCourseIndex;
import com.xh.core.bean.XhPage;
import com.xh.core.service.IBaseService;

import java.util.List;
import java.util.Map;


public interface IMaterialCourseIndexService extends IBaseService<MaterialCourseIndex> {
    List<MaterialCourseIndex> query(MaterialCourseIndexRequest bean);

    boolean add(List<MaterialCourseIndexRequest> bean);

    boolean delete(MaterialCourseIndexRequest bean);

    List<MaterialDto>  queryMaterialByCourseIndex( MaterialCourseIndexRequest bean);

    Map<String,Long> queryMaterialCountByCourseIndex(MaterialCourseIndexRequest bean);

    void deleteByCourseIndex(String courseIndexId);
}
